package com.dolphin.common.component.var.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shida
 */

@Setter
@Getter
@ToString
public class VarTreeNode {

    private BaseVarModel varModel;
    private List<VarTreeNode> children = new ArrayList<>();

    public VarTreeNode(BaseVarModel varModel) {
        this.varModel = varModel;
    }

    public void addChild(VarTreeNode child) {
        children.add(child);
    }

    public static final VarTreeNode createMissingNode(String bid){
        BaseVarModel model = new BaseVarModel() {
            @Override
            public int compareTo(BaseVarModel o) {
                return 0;
            }
        }
    }
}
